package com.sxj.corejava.code15_反射;

import java.lang.annotation.*;

/**
 * @author 石小俊
 */
// 所有注解在应用时,如果该注解有且仅有value属性,则可以直接写属性值
//@Target(value = ElementType.TYPE)
//@Target(ElementType.TYPE)
@Target({ElementType.TYPE,ElementType.FIELD,ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface SomeAnnotation {

    String name() default "admin";

    String[] value() default {"hello","f1"};

    int age() default 20;

}
